import json

import algorithm_runner

if __name__ == '__main__':
    input = """
             {
                 "params": {
                     "file_path": "C://Users//ljc//Downloads//61dbaf67-4638-4cf4-b4a8-77b9c5129c63.csv",
                     "framework_type": "sagemaker",
                     "file_type": "csv",
                     "source_type":"file",
                     "table":"ods.iot_fridge_mqtt",
                     "materials":"9038098"
                 },
                 "algorithms": [
                     {
                         "name": "jiareqi_http"
                     }
                 ]
             }
         """

    # 输入参数
    # input_params = sys.argv
    # 输入参数转json
    json = json.loads(input)
    algorithm_runner.run(json)
